#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import tkinter as tk


def add_btn(**dict):
    lbl = tk.Button(**dict)
    lbl.pack()
    return lbl


def add_label(**dict):
    lbl = tk.Label(**dict)
    lbl.pack()
    return lbl


def add_entry(**dict):
    lbl = tk.Entry(**dict)
    lbl.pack()
    return lbl


class LJWin():
    def __init__(self):
        self.win = tk.Tk()
        self.win.title('LJ')

    def lj_frame(self):
        return LJFrame(tk.Frame(master=self.win))

    def show(self):
        self.win.mainloop()

    def add_label(self, **dict):
        return add_label(master=self.win, **dict)

    def add_btn(self, **dict):
        return add_btn(master=self.win, **dict)


class LJFrame():
    def __init__(self, frame):
        self.frame = frame

    def show(self):
        self.frame.pack()

    def add_label(self, **dict):
        return add_label(master=self.frame, **dict)

    def add_btn(self, **dict):
        return add_btn(master=self.frame, **dict)
